package com.zmm.study.mes.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zmm.study.mes.entity.system.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * description
 * name SysRoleDao
 *
 * @author Zebulon
 * @date by 2022-05-05 20:59:02
 */
@Mapper
public interface SysRoleDao extends BaseMapper<SysRole> {

    /**
     * 根据用户 id 获取角色列表
     *
     * @param userId
     * @return
     * @throws Exception
     */
    List<SysRole> listByUserId(String userId) throws Exception;
}
